Std Group/ko

Std Group

Menu location
None
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
Std Part, Draft SelectGroup, Draft AddToGroup

설명

모둠(Std Group)(내부적으로는 App DocumentObjectGroup이라고 함)은 데이터 유형에 관계없이 나무보기에서 다양한 유형의 대상체를 한 곳에 모아 담을 수 있는 일종의 다목적 그릇입니다. 이는 모형 내 대상체를 분류하고 정리하여 논리적인 구조를 유지하기 위한 간단한 폴더로 사용됩니다. 모둠은 다른 모둠 안에 담길 수도 있습니다.

모둠 도구는 특정 작업대에 의해 정의되지 않고 기본 시스템에 의해 정의되므로 모든 작업대에서 사용할 수 있는 구조 도구 모음에서 찾을 수 있습니다.

조립체를 생성하기 위해 3D 대상체를 단일 단위로 묶으려면 모둠(Std Group) 대신 부품(Std Part)이라는 그릇을 사용하십시오.

모형나무의 각 모둠(Std Group)에 담겨 있는 다양한 유형의 대상체들.

용법

  1. Do one of the following:
    • Press the New Group button.
    • Right-click the document in the Tree View and select the Create Group option from the context menu.
  2. An empty Group is created.
  3. To add objects to the Group, select them in Tree View, and drag and drop them onto the Group.
  4. To remove objects from the Group, drag them out of the Group, and onto the document label at the top of the Tree View.
  5. Objects can also be added and removed by editing the 데이터Group property of the Group.

Properties

The Std Group, internally called App DocumentObjectGroup (App::DocumentObjectGroup class), is derived from the basic App DocumentObject (App::DocumentObject class) and inherits all its properties.

The Std Group has the same properties as the App FeaturePython, which is the most basic instance of an App DocumentObject. It also has the following additional properties in the Property View. Hidden properties can be shown by using the Show hidden command in the context menu of the Property View.

See Part Feature for an explanation of some of the properties listed below.

Data

Base

View

Display Options

Selection

Scripting

See also: FreeCAD Scripting Basics and scripted objects.

See Part Feature for the general information on adding objects to the document.

A Std Group (App DocumentObjectGroup) is created with the addObject() method of the document. Once a Group exists, other objects can be added to it with the addObject() or addObjects() methods.

import FreeCAD as App

doc = App.newDocument()
group = App.ActiveDocument.addObject("App::DocumentObjectGroup", "Group")

obj1 = App.ActiveDocument.addObject("PartDesign::Body", "Body")
obj2 = App.ActiveDocument.addObject("Part::Box", "Box")

group.addObjects([obj1, obj2])
App.ActiveDocument.recompute()

This basic App::DocumentObjectGroup doesn't have a Proxy object so it can't be fully used for sub-classing.

For Python subclassing you should create a App::DocumentObjectGroupPython object.

import FreeCAD as App

doc = App.newDocument()
obj = App.ActiveDocument.addObject("App::DocumentObjectGroupPython", "Name")
obj.Label = "Custom label"

For example, a FEM Analysis is an App::DocumentObjectGroupPython object with a custom icon and additional properties.

Links